<?php

    require ( 'init.inc.php' );
    require ( 'checkadmin.inc.php');
    require ( __COMM_PATH . 'pagecontrol.inc.php' );
    require ( __COMM_PATH . 'checkform.func.php' );
    require ( __CLASS_PATH . 'page_list.class.php' );

    // -------------------------------------------------------
    // 接收传递过来的变量
    // -------------------------------------------------------
   // $action = $_REQUEST["action"];
    $id     = intval(addslashes($_REQUEST["id"]));
   
    // -------------------------------------------------------
    // 页面基本设置
    // -------------------------------------------------------
    $page_title   = $ptitle["member_daili"];
    $page_type    = "edit";
    $display_page = "member_daili.htm";
    $table_name   = "{$tablepre}member";
    //$condition    = "WHERE `id`='{$id}'";
    $back_page    = "member_list.php?sortby={$_GET['sortby']}&oexp={$_GET['oexp']}&page={$_GET['page']}&id={$id}}";

    // -------------------------------------------------------
    // 选择查看数据
    // -------------------------------------------------------
   
     $sel_sql="select * from `$table_name` where `id`='$id'";
    // -------------------------------------------------------
    // 执行页面处理
    // -------------------------------------------------------
	//$tpl->assign("classid", $classid);
    show_page_head($page_type, $page_title);
/*    $pedit = new PageEdit($page_title, $back_page, $page_type);
    $pedit->SetParam($table_name, $condition);
    $pedit->UpdateData($fields_arr);
    $pedit->TplParse($display_page);
    show_page_foot();
    $db->close();
	*/
    $plist = new PageList($page_title, $page_size);
    $plist->SortOpen = true;
    $plist->SetSort($sortby, $oexp);
    $plist->SetUrlParam($url_para_arr);
    print_r($plist->Execute($sel_sql));
    $plist->TplParse($display_page);
    show_page_foot();
    $db->close();
?>